﻿using Abp.Domain.Repositories;
using Abp.Domain.Uow;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace Magicodes.Admin.Custom.Fins
{
    public class MonthlyListingManager : AdminDomainServiceBase, IMonthlyListingManager
    { 
        private readonly IMonthlyListingRepository  _monthlyListingRepository;
        public MonthlyListingManager(IMonthlyListingRepository monthlyListingRepository )
        {
            _monthlyListingRepository = monthlyListingRepository;
            
        }
        public Task ImportFromExcel(List<MonthlyListing> monthlyListings)
        {
            _monthlyListingRepository.ImportFromExcel(monthlyListings);

            return Task.CompletedTask;
            //foreach (var item in monthlyListings)
            //{
            //    _context.MonthlyListings.Add(item);

            //}
            //_repository.GetIocResolver().Resolve<AdminDbContext>();

        }
    }
}
